package com.sz.service;


import com.sz.mapper.regCardMapper;
import com.sz.model.BankCard;
import com.sz.model.BankParticulars;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class regCardServiceImpl implements IregCardService {

    @Autowired
    private regCardMapper cardMapper;

    @Override
    public String getCard( String number, String telephone) {
        //System.out.println("cardMapper = " + cardMapper.getCard( number, telephone));
        return cardMapper.getCard(number, telephone);
    }

    @Override
    public int addCard(BankCard bankCard) {
        return cardMapper.addCard(bankCard);
    }

    @Override
    public int addBankParticulars(BankParticulars bankParticulars) {
        return cardMapper.addBankParticulars(bankParticulars);
    }
}
